@extends('mobile.layout1')
@section('title','我的')
@section('content')
    <body>
    <div class="view-container mgn55 view-user">
        <div class="view-inner">
            <section class="user-info">
                <img class="avatar" src="{{Auth::user()->headimgurl}}">
                <a href="{{route('myTeam.edit')}}">
                    <div class="account j-account">
                        <span class="user-name">{{Auth::user()->name}}</span>
                        <span class="user-mobile"><i class="if if-mobile"></i>{{substr_replace(Auth::user()->mobile,'****',3,4)}}</span>
                    </div>
                </a>
            </section>
            <section class="order-related">
                <ul class="order-nav">
                    <li><a class="jump-to-topay" href="{{route('my.order',['pay_status'=>0])}}"><i class="if if-pay"></i><p>待付款</p></a></li>
                   <li> <a class="jump-to-tosend" href="{{route('my.order',['ship_status'=>\App\OrderPay::SHIP_STATUS_PENDING])}}"><i class="if if-send"></i><p>待接单</p></a></li>
                    <li><a class="jump-to-send" href="{{route('my.order',['ship_status'=>\App\OrderPay::SHIP_STATUS_PENDING])}}"><i class="if if-deliver"></i><p>待发货</p></a></li>
                    <li><a class="jump-to-finish" href="{{route('my.order',['ship_status'=>\App\OrderPay::SHIP_STATUS_DELIVERED])}}"><i class="if if-evaluate"></i><p>已发货</p></a></li>
                    <li><a class="jump-to-refund" href="{{route('my.order',['ship_status'=>\App\OrderPay::SHIP_STATUS_RECEIVED])}}">
                    <i class="if if-refund"></i><p>已完成</p></a></li>
                </ul>
                <ul class="list-block order-all">
                    <li><a href="/my/order" class="jump-to-order">全部订单</a></li>
                </ul>
            </section>
            <section class="list-area">
                <ul class="list-block">
                    {{--<li><a class="jump-to-cart" href="/cart"><i class="if if-cart-o"></i>购物车</a></li>--}}
                    <li><a href="#">我的余额<span class="pull-right cl-price" >￥{{Auth::user()->money}}</span></a></li>
                    <li><a href="/my/coupon">优惠券/分享抵用券</a></li>
                    <li><a href="/my/address">收货地址</a></li>
                </ul>
            </section>
        </div>
    </div>

    @inject('CartService','App\Interfaces\CartService')
    <div class="footer-nav">
        <ul class="nav-items">
            <li class="">
                <a href="/">
                    <div class="footer-icon1"></div>
                    <span>商城</span>
                </a>
            </li>
            <li>
                <a href="/cart">
                    <div class="footer-icon2"><em class="has-em" id="hidden" @if($CartService->getCartNumber() == 0)style="display: none" @endif></em>
                    </div>
                    <span>购物车</span>
                </a>
            </li>
            <li class="active">
                <a href="/user">
                    <div class="footer-icon3"></div>
                    <span>会员中心</span>
                </a>
            </li>
        </ul>
    </div>
    </body>
    </html>
    @endsection